//
//  MYUserAccount.swift
//  Sina
//
//  Created by 王亮龙1 on 16/5/23.
//  Copyright © 2016年 lianglong. All rights reserved.
//

import UIKit

class MYUserAccount: NSObject {
    
    //token
    var access_token: String?
    
    //token过期时间
    var expires_date: NSDate?
    
    //token的有效时长
    var expires_in: NSTimeInterval = 0 {
        didSet {
            expires_date = NSDate(timeIntervalSinceNow: expires_in)
        }
    }
    //用户的唯一标识
    var uid: String?
    
    var name: String?
    
    //用户头像
    var avatar_large: String?
    
    
    
    //KVC
    init(dict: [String : AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    
    
    
    //过滤
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }

}
